{% include file="index.header.tpl.php" %}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">学校每周工作安排</p>
                </div>
                <div class="box-body">                      
                        <div class="form-group">
                            <label  class="col-sm-1 control-label" style="width:70px;" >周次</label>
								<div class="col-sm-1">
								   <input type="text"  name="plan_week" value="{%$plan_week%}" readonly="readonly">  
								</div>
						</div>
                        <div style="height:16px; clear:both;"></div>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr  style="background-color:#5fb2dc">
                                        <td width="80">星期</td>
                                        <td style="width:10%;">日期</td>
										<td>主要内容</td>
										<td style="width:36%;">负责部门</td>
										<td>备注</td> 										
                                    </tr>	
                                </thead>
                                <tbody>
									{%foreach from=$plan_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.day_note%}</td>
                                        <td>
										{%if $key=='0'%}
										<input type="text" class="day1" name="start_time" value="{%$value.start_time%}">
										{%/if%}
										</td>
										<td><textarea rows="2" style="width:100%" name="plan_content_{%$value.plan_day%}" >{%$value.plan_content%}</textarea></td>
										<td>
                                           {%foreach from=$value.department_lists key=k item=v%}
												<label> <input type="checkbox" name="department_id_{%$value.plan_day%}[]" value="{%$k%}" {%if $v.is_check=='1'%}checked{%/if%}> {%$v.department_name%}</label>
										  {%/foreach%}
										  <label>其他：<input type="text" name="plan_rests_{%$value.plan_day%}" value="{%$value.plan_rests%}"></label>
										</td>
										<td><textarea rows="2" style="width:100%" name="plan_remark_{%$value.plan_day%}">{%$value.plan_remark%}</textarea></td>
                                    </tr>
									{%/foreach%}


                            </tbody>
                        </table>
				   </div><!--box-body -->
                   <div class="box-footer text-center">
                         <button type="submit" class="btn btn-primary">确 定</button>
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{% include file="index.footer.tpl.php" %}
<script>
  $(function() {
    $( ".day1" ).datepicker({
      changeMonth: true,
	  changeYear: true,
    });
  });
  </script>
 

